package com.tvi.cloud.oauth2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication
@EnableResourceServer
//用来告诉 Spring Cloud，此服务将作为一个 OAuth2 服务
@EnableAuthorizationServer
public class Oauth2ServiceApplication {
	public static void main(String[] args) {
		SpringApplication.run(Oauth2ServiceApplication.class, args);
	}
}
